package com.course.service.impl;

import com.course.mapper.RoleMapper;
import com.course.entity.Role;
import com.course.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 后台用户角色表 服务实现类
 * </p>
 *
 * @author author
 * @since 2022-09-16
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public Boolean linkPermission(Long role_id,Long permission_id) {
        return this.baseMapper.linkPermission(role_id,permission_id);
    }

    @Override
    public Boolean unLinkPermission(String sqlIds) {
        return this.baseMapper.unLinkPermission(sqlIds);
    }
}
